﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="~/js/jquery-1.11.1.js"></script>
    <link href="~/css/table.css" rel="stylesheet" />
    <link href="~/css/cwcalendar.css" rel="stylesheet" />
    <script src="~/javascript/comm/comm.js"></script>
    <script src="~/javascript/comm/list.js"></script>
    <script src="~/javascript/calendar-ch.js"></script>
    <script src="~/javascript/jquery-1.7.2.js"></script>
    <script src="~/javascript/locate.js"></script>
    <script src="~/javascript/select.js"></script>
    <script src="~/javascript/comm/time.js"></script>
</head>

<body>
    <div id="app">
        <form id="form1">
            <input type="hidden" name="operate" value="doAdopt">
            <!--	<input type="hidden" name="engageInterview.checkStatus" value=""/>
    <input type="hidden" name="engageInterview.checkComment" value=""/>
      -->
            <table width="100%">
                <tr>
                    <td>

                        <font color="black">您正在做的业务是：人力资源--招聘管理--面试管理--面试结果登记  </font>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <input type="button" value="面试登记" class="BUTTON_STYLE1"
                               v-on:click="Add();">
                        <input type="button" value="返回" class="BUTTON_STYLE1"
                               onclick="history.back();">

                    </td>
                </tr>
            </table>
            <table width="100%" border="1" cellpadding=0 cellspacing=1
                   bordercolorlight=#848284 bordercolordark=#eeeeee
                   class="TABLE_STYLE1">
                <tr>
                    <td class="TD_STYLE1" width="10%">
                        职位分类
                    </td>
                    <td width="10%" class="TD_STYLE2">
                        <input type="hidden" name="human_major_kind_id" id="human_major_kind_id" :value="dt.human_major_kind_id" @*v-model="human_major_kind_id"*@ />
                        <input type="text" name="human_major_kind_name" id="human_major_kind_name" :value="dt.human_major_kind_name" @*v-model="human_major_kind_name"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td width="10%" class="TD_STYLE1">
                        职位名称
                    </td>
                    <td width="15%" class="TD_STYLE2">
                        <input type="hidden" name="human_major_id" id="human_major_id" :value="dt.human_major_id" @*v-model="human_major_id"*@ />
                        <input type="text" name="human_major_name" id="human_major_name" :value="dt.human_major_name" @*v-model="human_major_name"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td width="10%" class="TD_STYLE1">
                        招聘类型
                    </td>
                    <td width="20%" class="TD_STYLE2" colspan="2">
                        <input type="text" name="engage_type" id="engage_type" :value="dt.engage_type" @*v-model="engage_type"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>

                    <td width="10%" rowspan="6" align="center">
                    </td>

                </tr>

                <tr>
                    <td class="TD_STYLE1" hidden>
                        编号
                    </td>
                    <td class="TD_STYLE2" hidden>
                        <input type="text" id="resume_id" name="resume_id" :value="dt.res_id" @*v-model="res_id"*@ hidden readonly="readonly" class="INPUT_STYLE2">
                    </td>

                    <td class="TD_STYLE1">
                        姓名
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_name" id="human_name" :value="dt.human_name" @*v-model="human_name"*@ readonly="readonly" class="INPUT_STYLE2">

                    </td>
                    <td class="TD_STYLE1">
                        性别
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_sex" id="human_sex" :value="dt.human_sex" @*v-model="human_sex"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        EMAIL
                    </td>
                    <td colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_email" id="human_email" :value="dt.human_email" @*v-model="human_email"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        电话号码
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_telephone" id="human_telephone" :value="dt.human_telephone" @*v-model="human_telephone"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        家庭电话
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_homephone" id="human_homephone" :value="dt.human_homephone" @*v-model="human_homephone"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        手机
                    </td>
                    <td colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_mobilephone" id="human_mobilephone" :value="dt.human_mobilephone" @*v-model="human_mobilephone"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        住址
                    </td>
                    <td colspan="3" class="TD_STYLE2">
                        <input type="text" name="human_address" id="human_address" :value="dt.human_address" @*v-model="human_address"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        邮编
                    </td>
                    <td colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_postcode" id="human_postcode" :value="dt.human_postcode" @*v-model="human_postcode"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        国籍
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_nationality" id="human_nationality" :value="dt.human_nationality" @*v-model="human_nationality"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        出生地
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_birthplace" id="human_birthplace" :value="dt.human_birthplace" @*v-model="human_birthplace"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        生日
                    </td>
                    <td class="TD_STYLE2" colspan="2">
                        <input type="text" name="human_birthday" id="human_birthday" :value="dt.human_birthday" @*v-model="human_birthday"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>

                <tr>
                    <td width="11%" class="TD_STYLE1">
                        民族
                    </td>
                    <td class="TD_STYLE2" width="14%">
                        <input type="text" name="human_race" id="human_race" :value="dt.human_race" @*v-model="human_race"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        宗教信仰
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_religion" id="human_religion" :value="dt.human_religion" @*v-model="human_religion"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        政治面貌
                    </td>
                    <td class="TD_STYLE2" colspan="2">
                        <input type="text" name="human_party" id="human_party" :value="dt.human_party" @*v-model="human_party"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>
                <tr>

                    <td class="TD_STYLE1">
                        身份证号码
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_idcard" id="human_idcard" :value="dt.human_idcard" @*v-model="human_idcard"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        年龄
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_age" id="human_age" :value="dt.human_age" @*v-model="human_age"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        毕业学校
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_college" id="human_college" :value="dt.human_college" @*v-model="human_college"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1" width="10%">
                        学历
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_educated_degree" id="human_educated_degree" :value="dt.human_educated_degree" @*v-model="human_educated_degree"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        教育年限
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_educated_years" id="human_educated_years" :value="dt.human_educated_years" @*v-model="human_educated_years"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        学历专业
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_educated_major" id="human_educated_major" :value="dt.human_educated_major" @*v-model="human_educated_major"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        薪酬要求
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="demand_salary_standard" id="demand_salary_standard" :value="dt.demand_salary_standard" @*v-model="demand_salary_standard"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        注册时间
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="regist_time" id="regist_time" :value="dt.regist_time" @*v-model="regist_time"*@ readonly="readonly" class="INPUT_STYLE2">

                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        特长
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_specility" id="human_specility" :value="dt.human_specility" @*v-model="human_specility"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        爱好
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_hobby" id="human_hobby" :value="dt.human_hobby" @*v-model="human_hobby"*@ readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        <span style="font-size: 10.5pt; font-family: 宋体;"></span>
                        推荐人
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="checker" id="checker" :value="dt.checker" readonly="readonly" @*v-model="checker"*@ class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        <span style="font-size: 10.5pt; font-family: 宋体;"></span>
                        推荐时间
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="check_time" id="check_time" :value="dt.check_time" @*v-model="check_time"*@ readonly="readonly" class="INPUT_STYLE2">

                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        个人履历
                    </td>
                    <td colspan="7" class="TD_STYLE2">
                        <textarea name="human_history_records" rows="4" id="human_history_records" @*v-model="human_history_records"*@
                                  class="TEXTAREA_STYLE1" readonly="readonly">{{dt.human_history_records}}</textarea>
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        备注
                    </td>
                    <td colspan="7" class="TD_STYLE2">
                        <textarea name="remark" id="remark" @*v-model="remark"*@ rows="4" class="TEXTAREA_STYLE1" readonly="readonly">{{dt.remark}}</textarea>
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        推荐意见
                    </td>
                    <td class="TD_STYLE2" colspan="7">
                        <textarea name="recomandation" id="recomandation" @*v-model="recomandation"*@ rows="4" class="TEXTAREA_STYLE1" readonly="readonly">{{dt.recomandation}}</textarea>
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        面试次数
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" class="INPUT_STYLE2" name="interview_amount" id="interview_amount" :value="dd" readonly="readonly" />
                    </td>
                    <td class="TD_STYLE1">
                        形象评价
                    </td>
                    <td class="TD_STYLE2">
                        <select name="image_degree" id="image_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        口才评价
                    </td>
                    <td class="TD_STYLE2">
                        <select name="native_language_degree" id="native_language_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        外语口语能力
                    </td>
                    <td class="TD_STYLE1">
                        <select name="foreign_language_degree" id="foreign_language_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        应变能力
                    </td>
                    <td class="TD_STYLE2">
                        <select name="response_speed_degree" id="response_speed_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        EQ
                    </td>
                    <td class="TD_STYLE2">
                        <select name="EQ_degree" id="EQ_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        IQ
                    </td>
                    <td class="TD_STYLE2">
                        <select name="IQ_degree" id="IQ_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        综合素质
                    </td>
                    <td class="TD_STYLE1">
                        <select name="multi_quality_degree" id="multi_quality_degree" class="SELECT_STYLE1">
                            <option value="A">A</option>
                            <option value="B">B</option>
                            <option value="C">C</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        面试人
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="register" id="register" class="INPUT_STYLE2" />
                    </td>
                    <td class="TD_STYLE1">
                        面试时间
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="registe_time" onclick="aa('registe_time')"
                               class="INPUT_STYLE2" id="registe_time">


                    </td>
                    <td class="TD_STYLE1">
                        &nbsp;
                    </td>
                    <td class="TD_STYLE2">
                        &nbsp;
                    </td>
                    <td class="TD_STYLE1">
                        &nbsp;
                    </td>
                    <td class="TD_STYLE2">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        面试评价
                    </td>
                    <td class="TD_STYLE2" colspan="7">
                        <textarea name="interview_comment" id="interview_comment" class="TEXTAREA_STYLE1"
                                  rows="4"></textarea>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>


<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            //res_id:"",
            //engage_type: "",
            //salary_standard_name: "",
            //regist_time: "",
            //human_name: "",
            //human_address: "",
            //human_postcode: "",
            //human_pro_designation: "",
            //human_major_kind_id: "",
            //human_major_kind_name: "",
            //human_major_id: "",
            //human_major_name: "",
            //human_telephone: "",
            //human_homephone: "",
            //human_mobilephone: "",
            //human_email: "",
            //human_hobby: "",
            //human_specility: "",
            //human_sex: "",
            //human_religion: "",
            //human_party: "",
            //human_nationality: "",
            //human_race: "",
            //human_birthday: "",
            //human_birthplace: "",
            //human_age: "",
            //human_educated_degree: "",
            //human_educated_years: "",
            //human_educated_major: "",
            //human_college: "",
            //human_idcard: "",
            //remark:"",
            //demand_salary_standard: "",
            //human_history_records: "",
            //check_status: "",
            //pass_checker: "",
            //pass_check_time: "",
            //recomandation: "",
            dt:[],
            dd: ""
        },
        methods: {
            load: function () {
                var t = this;
                $.ajax({
                    url: "/interview/interview_register1",
                    type: "Post",
                    data:"id="+@ViewData["id"],
                    success: function (msg) {
                        //var dt = eval("(" + msg + ")");
                        var dt = eval(msg);
                        t.dt = dt["sks"];
                        t.dd = dt["num"];
                        //t.res_id = dt.res_id;
                        //t.human_name = dt.human_name;
                        //t.engage_type = dt.engage_type;
                        //t.human_address = dt.human_address;
                        //t.human_postcode = dt.human_postcode;
                        //t.human_major_kind_id = dt.human_major_kind_id;
                        //t.human_major_kind_name = dt.human_major_kind_name;
                        //t.human_major_id = dt.human_major_id;
                        //t.human_major_name = dt.human_major_name;
                        //t.human_telephone = dt.human_telephone;
                        //t.human_homephone = dt.human_homephone;
                        //t.human_mobilephone = dt.human_mobilephone;
                        //t.human_email = dt.human_email;
                        //t.human_hobby = dt.human_hobby;
                        //t.human_specility = dt.human_specility;
                        //t.human_sex = dt.human_sex;
                        //t.human_religion = dt.human_religion;
                        //t.human_party = dt.human_party;
                        //t.human_nationality = dt.human_nationality;
                        //t.human_race = dt.human_race;
                        //t.human_birthday = dt.human_birthday;
                        //t.human_age = dt.human_age;
                        //t.human_educated_degree = dt.human_educated_degree;
                        //t.human_educated_years = dt.human_educated_years;
                        //t.human_educated_major = dt.human_educated_major;
                        //t.human_college = dt.human_college;
                        //t.human_idcard = dt.human_idcard;
                        //t.human_birthplace = dt.human_birthplace;
                        //t.demand_salary_standard = dt.demand_salary_standard;
                        //t.human_history_records = dt.human_history_records;
                        //t.remark = dt.remark;
                        //t.recomandation = dt.recomandation;
                        //t.attachment_name = dt.attachment_name;
                        //t.check_status = dt.check_status;
                        //t.register = dt.register;
                        //t.regist_time = dt.regist_time;
                        //t.checker = dt.checker;
                        //t.check_time = dt.check_time;
                        //t.pass_register = dt.pass_register;
                        //t.pass_regist_time = dt.pass_regist_time;
                        //t.pass_checker = dt.pass_checker;
                        //t.pass_check_time = dt.pass_check_time;
                    }
                })
            },
            Add: function () {
                var time = $("#registe_time").val();
                var res_id = $("#res_id").val();
                if (time == "" || time == null) {
                    alert("请选择面试时间");
                    return false;
                }
                $.ajax({
                    url: "/interview/interview_register",
                    type: "put",
                    data: $("#form1").serialize(),
                    success: function (msg) {
                        if (msg > 0) {
                            alert('面试成功!');
                            location.href = '/interview/interview_list';
                        } else {
                            alert('面试失败!');
                        }
                        window.location.href = '/interview/interview_list';
                    }
                })
            }
        },
        mounted: function () {
            this.load();
        }
    })
</script>